package mywebapps.security.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;


public class User implements Serializable
{
    private static final long serialVersionUID = 1L;
    
    private int userId;
    private String username;
    private String password;
    private String firstName;
    private String lastName;
    private String email;
    private String phone;
    private String mobile;
    private Character gender;
    private Integer age;
    private Date birthdate;
    private boolean expired;
    private boolean locked;
    private boolean enabled;
    private Timestamp lastUpdateTst;
    private String lastUpdateUser;
    private int failedLoginAttempts;
    
    public User()
    {
        lastUpdateUser = "BILLIBWEBAPP";
        expired = true;
        locked = true;
        enabled = false;
    }
    
    public int getUserId()
    {
        return userId;
    }
    public void setUserId(int userId)
    {
        this.userId = userId;
    }
    public String getUsername()
    {
        return username;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }
    public String getPassword()
    {
        return password;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }
    public String getFirstName()
    {
        return firstName;
    }
    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }
    public String getLastName()
    {
        return lastName;
    }
    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }
    public String getEmail()
    {
        return email;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }
    public String getPhone()
    {
        return phone;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }
    public String getMobile()
    {
        return mobile;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }
    public Character getGender()
    {
        return gender;
    }
    public void setGender(Character gender)
    {
        this.gender = gender;
    }
    public Integer getAge()
    {
        return age;
    }
    public void setAge(Integer age)
    {
        this.age = age;
    }
    public Date getBirthdate()
    {
        return birthdate;
    }

    public void setBirthdate(Date birthdate)
    {
        this.birthdate = birthdate;
    }

    public boolean isExpired()
    {
        return expired;
    }
    public void setExpired(boolean expired)
    {
        this.expired = expired;
    }
    public boolean isLocked()
    {
        return locked;
    }
    public void setLocked(boolean locked)
    {
        this.locked = locked;
    }
    public boolean isEnabled()
    {
        return enabled;
    }
    public void setEnabled(boolean enabled)
    {
        this.enabled = enabled;
    }
    public Timestamp getLastUpdateTst()
    {
        return lastUpdateTst;
    }
    public void setLastUpdateTst(Timestamp lastUpdateTst)
    {
        this.lastUpdateTst = lastUpdateTst;
    }
    public String getLastUpdateUser()
    {
        return lastUpdateUser;
    }
    public void setLastUpdateUser(String lastUpdateUser)
    {
        this.lastUpdateUser = lastUpdateUser;
    }

    public int getFailedLoginAttempts()
    {
        return failedLoginAttempts;
    }

    public void setFailedLoginAttempts(int failedLoginAttempts)
    {
        this.failedLoginAttempts = failedLoginAttempts;
    }
}
